
<?php
use zhtfrontend\assets\AppAsset;
use yii\helpers\Html;

AppAsset::register($this);
$this->title = $name;
$route = $this->context->module->requestedRoute;
$arr = explode('/',$route);
$menu = \common\components\helpers\Fun::cache('menu_branch_cache', false);
$class = 'zx-min-height yx-praise-list-box yx-praise-box ';
if($menu) {
    foreach ($menu as $m) {
        if ($m['c'] == $arr[0] && $m['a'] == $arr[1] && $m['size'] != '' && $m['display'] != 1) {
            $this->context->layout = '@app/views/layouts/iframe.php';
            $class = '';
            break;
        }
    }
}
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>

<body>
<?php $this->beginBody()?>
<div id="message" class="yx-radius2 site-error <?=$class?>">
    <h3 class="zx-mg"><?= \Yii::t('zhtfrontend', '错误消息'); ?></h3>
    <div class="alert alert-danger zx-mg"><?= nl2br(Html::encode($message)) ?></div>
</div>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
